package org.zjx.common.service;

import org.zjx.common.bean.*;
import org.zjx.common.entity.Address;
import org.zjx.common.route.IRoute;

import java.util.List;

public interface QueryService {
    //是否有物品 返回栏种类
    int haveItem(String playerId, String itemName,String attribute);

    //查询NPC信息
    Npc queryNpc(String npcName,String screen,String room);

    //查询物品购买NPC
    Npc queryItemNpc(String itemName);

    //查询场景信息
    Screen queryScreen( String screen);

    //查询房间信息
    Room queryRoom(String screen, String roomName);

    //查询种族信息
    Race queryRace( String race);
    Race quertRace( int raceId);

    //查询门派信息
    Sects querySect( String sectName);
    Sects querySect(int sectId);

    //查询服务器信息
    Server queryServer(String serverName);
    Server queryServer(int serverId);

    List<IRoute> queryRoute(Address startAddr,Address endAddr,boolean haveFlyingCharms);
    List<IRoute> queryRoute(String playerId,Address startAddr,Address endAddr);
}
